<?php
namespace ZHMVC\B\BXUNI;

class Bzuni {
    private $_Leixing="";
    private $_AppName="";
    
    public function __construct() {
        
    }

    public function getAppName()
    {
        return $this->_AppName;
    }


    public function setAppName($_AppName)
    {
        $this->_AppName = $_AppName;
    }

    public function getLeixing()
    {
        if(isset($this->_Leixing))
        {
            return($this->_Leixing);
        }else
        {
            return(NULL);
        }
    }
    
    public function setLeixing($leixing)
    {
        $this->_Leixing = $leixing;
    }
    
    public function parse() {
        if($this->_Leixing=="文章")
        {
            $this->makeWenzhang();
        }
        elseif($this->_Leixing=="电商")
        {
            $this->makeDianshang();
        }
            
        
    }
    
    private function makeWenzhang(){
        $wz_conn=new \ZHMVC\B\BXUNI\Wenzhang();
        $wz_conn->setAppName($this->_AppName);
        $wz_conn->parse();
    }
    
    private function makeDianshang(){
        
    }
    
}